export default {
  namespaced: true, //开启命名空间
  state: {
    username: "张三",
  },
  mutations: {
    changeName(state) {
      state.username = "李四";
    },
  },
  actions: {},
  getters: {},
};

// $store.state.模块名.key
